package com.dao.impl;

import com.dao.userDao;
import com.model.user;
import org.springframework.stereotype.Repository;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

@Repository("userDaoImpl")
public class userDaoImpl implements userDao {

    @PostConstruct
    public void myInit(){
        System.out.println("自定义的初始化....");
    }

    @PreDestroy
    public void myDestory(){
        System.out.println("自定义的销毁....");
    }


    @Override
    public void add(user u) {
        System.out.println("dao 添加用户....");
    }
}
